package oo.day04;

public class StaticDemo {
	public static void main(String[] args) {
//		 
//		System.out.println(Loo.b);
//		System.out.println(o1.b);
		
		Noo o3 = new Noo();
		Noo o4 = new Noo();
		
	}
}
/* 
 * */

class Noo{
	static {
		System.out.println("静态块");
	}
	Noo(){
		System.out.println("构造方法");
		
	}
}

class Loo{
	int a;
	static int b;
	Loo(){
		a++;
		b++;
	}
	void show () {
		System.out.println("a="+a);
		System.out.println("b="+b);
	}
 }